package com.dandelion.api.request;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

public class UserAddressRequest implements Serializable {
    @NotEmpty(message = "provCode is required")
    @Length(max = 16, message = "provCode 不能超过16个字符")
    private String provCode;

    @NotEmpty(message = "cityCode is required")
    @Length(max = 16, message = "cityCode 不能超过16个字符")
    private String cityCode;

    @NotEmpty(message = "areaCode is required")
    @Length(max = 16, message = "areaCode 不能超过16个字符")
    private String areaCode;

    @NotEmpty(message = "district is required")
    @Length(max = 64, message = "district 不能超过64个字符")
    private String district;

    @NotEmpty(message = "mobile is required")
    @Length(max = 32, message = "mobile 不能超过32个字符")
    private String mobile;

    @NotEmpty(message = "name is required")
    @Length(max = 32, message = "name 不能超过32个字符")
    private String name;

    private byte isDefault;

    public String getProvCode() {
        return provCode;
    }

    public void setProvCode(String provCode) {
        this.provCode = provCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(byte isDefault) {
        this.isDefault = isDefault;
    }
}